package com.my.structuraltype.mediator;

public abstract class Colleague {
	
	//持有一个调停者对象
	private Mediator mediator;

	public Colleague(Mediator mediator) {
		super();
		this.mediator = mediator;
	}

	/**
	 * @return the mediator
	 */
	public Mediator getMediator() {
		return mediator;
	}

	/**
	 * @param mediator the mediator to set
	 */
	public void setMediator(Mediator mediator) {
		this.mediator = mediator;
	}
}
